package model

import "time"

type OrderGoods struct {
	OrderGoodsId	uint			`gorm:"primary_key"`
	OrderId			uint			`gorm:"index:order_id_idx"`
	GoodsName		string			`gorm:"type:varchar(20)"`
	GoodsType  		int				`gorm:"size:2"`
	GoodsNumber  	int				`gorm:"type:int(10)"`
	GoodsPrice		float32			`gorm:"type:double(8,2)"`
	CreatedAt 		time.Time		`gorm:"type:datetime"`
	UpdatedAt 		time.Time		`gorm:"type:datetime"`
	DeletedAt 		*time.Time		`gorm:"type:datetime"`
}

func (OrderGoods) TableName() string {
	return "tbl_order_goods"
}
